home *** CD-ROM | disk | FTP | other *** search
/ PC Media 2 / PC MEDIA CD02.iso / share / udos / fgrep103 / bm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-28  |  856 b   |  31 lines

  1.  
  2. #include <stdio.h>  /* N2 03-17-91 */
  3. #include <string.h> /* N2 03-17-91 */
  4. #include <dos.h>    /* N2 03-17-91 */
  5. #include <io.h>     /* N2 03-17-91 */
  6. #include <ctype.h>  /* N2 03-17-91 */
  7. #include <stdlib.h> /* N2 04-05-91 */
  8.  
  9. #define FIRSTCHAR ' '
  10. #define MAXCHAR 0377
  11. #define MAXBUFF 8192
  12. #define MAXSIZE 100
  13. #define MAXPATS 100 /* max number of patterns */
  14. #define BUFSIZE 2048
  15.  
  16. #ifdef __cplusplus   // 11-28-91
  17.  #define min(x,y) (x) < (y) ? (x) : (y)  // N2 11-28-91
  18.  #define max(x,y) (x) > (y) ? (x) : (y)  // N2 11-28-91
  19. #endif
  20.  
  21. #define NULL 0
  22.  
  23. struct PattDesc
  24.  {
  25.   int *Skip1, *Skip2;  /* pointers to skip tables */
  26.   char *Pattern;
  27.   int PatLen;          /* pattern length */
  28.   char *Start;         /* starting position of search (at beginning of pattern) */
  29.   int Success;         /* true when pattern found */
  30. };
  31.